﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CoreEx.MicroMapper.Implementation
{
    public class AccessorInfoMatch : IAccessorInfoMatch
    {
        public IAccessorInfo SourceAccessorInfo {get; set;}        
        public IAccessorInfo TargetAccessorInfo {get; set;}

        public override string ToString()
        {
            if (SourceAccessorInfo != null && TargetAccessorInfo != null)
                return string.Format("{0} matches {1}", SourceAccessorInfo, TargetAccessorInfo);
            return base.ToString();
        }

    }
}
